
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Alterar Endereco:</h1>
        <form id="form" action="EventoServlet?cmd=alterar" method="POST">
            <input name="nome" value="${evento.id}" type="hidden">
            <label>Nome:</label>
            <input name="artista" value="${evento.local}" type="text" /> <br />
            <label>Artista:</label>
            <input name="estilo" value="${evento.rua}" type="text" /> <br />
            <label>Estilo:</label>
            <input name="descricao" value="${evento.bairro}" type="text" /> <br />
            <label>Descricao:</label>
            <input name="dataEvento" value="${evento.cidade}" type="text" /> <br />
            <label>Data do Evento:</label>
            <input o name="totalIngresso" value="${evento.estado}" type="text" /> <br />
            <label>Total de Ingressos:</label>
            <input name="cep" value="${evento.cep}" type="text" /> <br />
            <select name="idEndereco">
                <option>Local:</option>
                <c:forEach var="local" items="${funcoes}">
                    <option value="${evento.endereco.id}">${evento.endereco.local}</option>
                </c:forEach>
            </select>
            <input type="submit" value="Alterar"/>
            <c:if test="${!empty msg}">
                <script type="text/javascript">
                    alert('${msg}');
                </script>
            </c:if>
        </form>
    </body>
</html>
